package com.fhz.oomtest

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

/**
 * 单例内存泄漏
 */
class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val instance = Utilss.getInstance(this)
        instance.sout()
        startActivity(Intent(this,MainActivity2::class.java))
    }
}